home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / ARAStatus ƒ / MenusList.h < prev   
Text File  |  1992-06-19  |  510b  |  23 lines

  1. // MenuList.h
  2.  
  3. #pragma once
  4.  
  5. struct MenuElement {
  6.     MenuHandle        menu;
  7.     short            leftEdge;
  8. };
  9.  
  10. typedef struct MenuElement MenuElement;
  11.  
  12. struct MenusList {
  13.     short            itemsOffset;            // offset to last menu item.
  14.     short            rightEdge;                // right edge of the menu.
  15.     short            resId;                    // resource id of MBDF.
  16.     MenuElement        elements[];                // array of menu items.
  17. };
  18.  
  19. typedef struct MenusList MenusList, **MenusListHandle;
  20.  
  21. MenusListHandle theMenus : 0xa1c;
  22. MenusListHandle theSystemMenus : 0x286;        // System 7 menu list.
  23.